package com.lhb.test.clazz;

public class Person {
	
	static Flag sf =new Flag("Person.static.var");
	static{
		System.out.println(sf);
		System.out.println("Person.static.......");
	}
	static Flag sf2 =new Flag("Person.static.var2");
	
	public Person(){
		System.out.println("Persion.constructor......");
	}
	
	Flag f = new Flag("Person.var");
	{
		System.out.println(f);
		System.out.println("Person.dynamic.......");
	}
	Flag f2 = new Flag("Person.var2");
	String name;
	
	int age=10;
	
	protected int getAge(){
		return age;
	}
	
	
	
	public static void main(String[] args) {
		new Student();
	}
}

class A{
	int i=1;
	public int getValue(){
		return i;
	}
}

class B extends A{
	
	public int getValue(){
		return i;
	}
}
